<%@ page language="java" import="java.util.*,com.deryun.tyl.bean.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>产品/服务供应商</title>
<%@ include file="/WEB-INF/views/layout/public_css.jsp"%>
<%@ include file="/WEB-INF/views/layout/public_js.jsp"%>
<style type="text/css">
.font-red {
	color:red;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
    $('#suppliers').DataTable({
    	"pagingType":   "full_numbers",
    	"oLanguage" : {
			"sProcessing" : "处理中...",
			"sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
			"oPaginate" : {
				"sFirst" : "首页",
				"sPrevious" : "上页",
				"sNext" : "下页",
				"sLast" : "末页"
			}
		},
    });
} );


</script>
</head>
<body>
<%@ include file="/WEB-INF/views/layout/head_ele.jsp"%>
<div class="container-fluid" style="padding:0 20px">
	<!-- <div>服务商分类</div>
	<div>选中分类的服务商 品牌</div> -->
	<table id="suppliers" class="table table-striped" cellspacing="0" width="100%;">
        <thead>
            <tr>
                <th>供应商名称</th>
                <th>供应商地址</th>
                <th>供应商联系人</th>
                <th>供应商联系方式</th>
                <th>供应商传真</th>
                <th>供应商评论</th>
            </tr>
        </thead>
        <tbody>
        
             <%
				List<Supplier> pr_list =  (List<Supplier>) request.getAttribute("message");
				for(Supplier p: pr_list)
				{
		 %>
            <tr>
                <td><%=p.supplierName %></td>
                <td><%=p.address %></td>
                <td><%=p.supplierMan %></td>
                <td><%=p.supplierNum %></td>
                <td><%=p.supplierFax %></td>
                <td><%=p.comment %></td>
            </tr>
            <%
				}
		 %>
        </tbody>
    </table>
</div>
</body>
</html>